﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ESPL.CodeGenerator.Domain.Utilities
{
    internal class FileHelper
    {
        public static string CombinePath(string source,string toAppend)
        {
            return string.Format("{0}/{1}", source, toAppend);
        }

        public static void CreateFile(string filePath, string fileContents)
        {
            using (StreamWriter writer = File.CreateText(filePath))
            {
                writer.WriteLine(fileContents);
                writer.Close();
            }
        }

    }
}
